package com.qujia.station.mapper;

import com.qujia.station.domain.SysCashReceipts;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * (CashReceipts)表数据库访问层
 *
 * @author makejava
 * @since 2023-04-18 14:20:44
 */
@Repository
public interface CashReceiptsMapper {




    /**
     * 查询指定行数据
     *
      分页对象
     * @return 对象列表
     */
    List<SysCashReceipts> queryAllByLimit(@Param("id") Long id,@Param("startingTime") String startingTime, @Param("endTimeint") String endTimeint,@Param("phoneNumber") String phoneNumber,@Param("stationId")Long stationId ,@Param("enterpriseId")Long enterpriseId);


    /**
     * 添加统计
     * @param id
     * @param startingTime
     * @param endTimeint
     * @param
     * @param
     * @param phoneNumber
     * @return
     */
    Map conditionCount(@Param("id") Long id,@Param("startingTime") String startingTime, @Param("endTimeint") String endTimeint,@Param("phoneNumber") String phoneNumber,@Param("stationId")Long stationId ,@Param("enterpriseId")Long enterpriseId);
    /**
     * 统计总行数
     *
     *
     * @return 总行数
     */
    long count(@Param("stationId")Long stationId ,@Param("enterpriseId")Long enterpriseId);

    /**
     * 新增数据
     *
     * @param cashReceipts 实例对象
     * @return 影响行数
     */
    int insert(@Param("cash") SysCashReceipts cashReceipts);



    /**
     * 修改数据
     *
     * @param cashReceipts 实例对象
     * @return 影响行数
     */
    int update(@Param("cash") SysCashReceipts cashReceipts);

    /**
     * 通过主键删除数据
     *
     * @return 影响行数
     */
    int deleteById(@Param("eids") List<Long> eids);

}

